package mylab.demo.usm.biz.mapper;

import mylab.demo.usm.biz.entity.SysUser;
import mylab.starters.mybatis.template.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Sylar
 * @since 2021-11-24
 */
public interface SysUserMapper extends SuperMapper<SysUser> {

    /**
     * 根据用户名称在资源服务器中获取用户信息
     *
     * @param username 用户名
     * @param username 提出申请的clientId
     * @return 用户信息
     */
    @Select("select * from sys_user where username=#{username} and deleted = 0 limit 1")
    SysUser getByUsername(@Param("username") String username);

}
